﻿using System;
using KillBill.Presentation.Common.WindowsForms.View;
using KillBill.Presentation.Modules.Administration.IView;
using KillBill.Presentation.Modules.Administration.Presenter;

namespace KillBill.Presentation.Modules.Administration.View
{
    public partial class LogInView : KillBillWinFormView, ILogIn 
    {
        public LogInView()
        {
            InitializeComponent();
            Presenter = new LogInPresenter(this);
        }
        #region ILogIn Members
        public LogInPresenter Presenter { get; set; }
        public string Id
        {
            get
            {
                return this.txbxId.Text;
            }
            set
            {
                txbxId.Text = value;
            }
        }
        public string Password
        {
            get
            {
                return txBxPassWord.Text;
            }
            set
            {
                txBxPassWord.Text = value;
            }
        }

        #endregion

        private void btnAcept_Click(object sender, EventArgs e)
        {
            Presenter.Autenticate();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

    }
}
